#ifndef MYPUSHBUTTON_H
#define MYPUSHBUTTON_H

#include <QPushButton>
#include <QDebug>
#include<QVBoxLayout>
#include<QMouseEvent>
#include <QPaintEvent>
#include <QPainter>
#include <QPen>

class myPushbutton : public QPushButton
{
    Q_OBJECT
public:
    myPushbutton(QWidget * parent = Q_NULLPTR);
    void paintEvent(QPaintEvent * pe);
    void mouseMoveEvent(QMouseEvent *e);
    void mousePressEvent(QMouseEvent *e);
    void mouseReleaseEvent(QMouseEvent *e);
    void leaveEvent(QEvent *event);
    QColor color;

};

#endif // MYPUSHBUTTON_H
